package com.asdc.autoscanfiles.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.data.elasticsearch.annotations.Document;
import org.springframework.data.elasticsearch.annotations.Field;
import org.springframework.data.elasticsearch.annotations.FieldType;
import org.springframework.format.annotation.DateTimeFormat;

import javax.persistence.Id;

/**
 * @Author zhangbingyue
 * @Description //TODO $
 * @Date $ $
 * @Param $
 * @return $
 **/
@Document(indexName = "file", type = "file") // 文档
public class EsResultDto implements java.io.Serializable {
    /**
	 * 
	 */
	private static final long serialVersionUID = -2657218025365210442L;
	@Id
    private Integer id;
    @Field(type = FieldType.Text)
    private String level1; //一级分类
    @Field(type = FieldType.Text)
    private String level1Name; //一级分类
    @Field(type = FieldType.Text)
    private String level2; //二级分类
    @Field(type = FieldType.Text)
    private String level2Name; //二级分类
    @Field(type = FieldType.Text)
    private String level3; //三级分类
    @Field(type = FieldType.Text)
    private String level3Name; //三级分类
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @Field(type = FieldType.Date)
    private String beginDate; //开始日期
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @Field(type = FieldType.Date)
    private String endDate;//结束日期
    @Field(type = FieldType.Text)
    private String elementType;
    @Field(type = FieldType.Text)
    private String elementName;
    @Field(type = FieldType.Text)
    private String areaNumber;
    @Field(type = FieldType.Text)
    private String areaName;
    @Field(type = FieldType.Text)
    private String fileName;
    @Field(type = FieldType.Text)
    private String type;
    @Field(type = FieldType.Text)
    private String newPath;
    @Field(type = FieldType.Text)
    private String typeValue;
    @Field(type = FieldType.Text)
    private String sheng;
    @Field(type = FieldType.Text)
    private String provinceName;
    @Field(type = FieldType.Text)
    private String provinceCode;

    public String getSheng() {
        return sheng;
    }

    public void setSheng(String sheng) {
        this.sheng = sheng;
    }

    public String getTypeValue() {
        return typeValue;
    }

    public void setTypeValue(String typeValue) {
        this.typeValue = typeValue;
    }

    public String getNewPath() {
        return newPath;
    }

    public void setNewPath(String newPath) {
        this.newPath = newPath;
    }

    public String getLevel1Name() {
        return level1Name;
    }

    public void setLevel1Name(String level1Name) {
        this.level1Name = level1Name;
    }

    public String getLevel2Name() {
        return level2Name;
    }

    public void setLevel2Name(String level2Name) {
        this.level2Name = level2Name;
    }

    public String getLevel3Name() {
        return level3Name;
    }

    public void setLevel3Name(String level3Name) {
        this.level3Name = level3Name;
    }

    public String getElementType() {
        return elementType;
    }

    public void setElementType(String elementType) {
        this.elementType = elementType;
    }

    public String getElementName() {
        return elementName;
    }

    public void setElementName(String elementName) {
        this.elementName = elementName;
    }

    public String getAreaNumber() {
        return areaNumber;
    }

    public void setAreaNumber(String areaNumber) {
        this.areaNumber = areaNumber;
    }

    public String getAreaName() {
        return areaName;
    }

    public void setAreaName(String areaName) {
        this.areaName = areaName;
    }

    public String getFileName() {
        return fileName;
    }

    public void setFileName(String fileName) {
        this.fileName = fileName;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getLevel1() {
        return level1;
    }

    public void setLevel1(String level1) {
        this.level1 = level1;
    }

    public String getLevel2() {
        return level2;
    }

    public void setLevel2(String level2) {
        this.level2 = level2;
    }

    public String getLevel3() {
        return level3;
    }

    public void setLevel3(String level3) {
        this.level3 = level3;
    }

    public String getBeginDate() {
        return beginDate;
    }

    public void setBeginDate(String beginDate) {
        this.beginDate = beginDate;
    }

    public String getEndDate() {
        return endDate;
    }

    public void setEndDate(String endDate) {
        this.endDate = endDate;
    }

	public String getProvinceName() {
		return provinceName;
	}

	public void setProvinceName(String provinceName) {
		this.provinceName = provinceName;
	}

	public String getProvinceCode() {
		return provinceCode;
	}

	public void setProvinceCode(String provinceCode) {
		this.provinceCode = provinceCode;
	}
    
    
}
